/**
 * 
 */
package resourcebundles;

import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * @author Student
 * 
 */
public class MyResource {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String baseName = "resourcebundles.messages";

		try {
			ResourceBundle rb = ResourceBundle.getBundle(baseName,
					Locale.FRENCH);
			String key = "hello";
			String hello = rb.getString(key);
			System.out.println(hello);
		} catch (MissingResourceException e) {
			e.printStackTrace();
			// TODO: handle exception
		}

	}
}
